name: Mirror to gitverse

on: [push]

jobs:
  
  mirror:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
      with:
        fetch-depth: 0
    - name: mirror-repository
      uses: yesolutions/mirror-action@v0.7.0
      with:
        REMOTE: git@gitverse.ru:2222/leotsarev/leotsarev.ru.git
        GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_PRIVATE_KEY }}
        GIT_SSH_KNOWN_HOSTS: ${{ vars.GIT_SSH_KNOWN_HOSTS }}
        GIT_SSH_NO_VERIFY_HOST: "true"
        DEBUG: "true"
